$(function () {

	Cufon.replace('#lookslikeds ul li a span', {
        fontFamily: 'Proxima Nova Rg'
    });
	
	Cufon.replace('#stamp-must-have .text-big, #stamp-daslu-mania .text-big', {
        fontFamily: 'Knockout'
    });
	
	$("#looklist-wrapper .price").each(function(){
		if($(this).text().length === 0){
			$(this).remove();
		}
	});
	
	$('.about-look ul li .look-information .sizes select').each(function() {
		$(this).jQSelect({ rotulo : "Tamanho" });
	});

	$('.about-look ul li .look-information .price .valor-por').each(function () {
	
		$(this).html( $(this).html().replace("Por ","") );
	
	});
	
	$('.about-look ul li .look-information .price .preco-a-vista').remove();
	//$('.about-look ul li .look-information .price .valor-dividido').remove();
	
	$('.about-look ul li .look-information .price .valor-dividido').each(function () {
 
		$(this).html( $(this).html().replace("ou ","") );
 
	});
	
	$(".topic.Tamanhos, .topic.Tamanho").each(function(){
		$(this).find(".jQcustomselect a.jqselectlabel").text("Escolha o tamanho");
	});
	$("#caracteristicas .name-field").each(function(){
		if( $(this).text().toLowerCase() == "mania" ){
			$("#stamp-daslu-mania").css("display","block");
			createSeal("img_mania.png","#stamps");
		}
		if( $(this).text().toLowerCase() == "must have" ){
			if($("#stamp-daslu-mania").is(":visible")){
				$("#stamp-daslu-mania").css("display","none");
			}
			$("#stamp-must-have").css("display","block");
			createSeal("img_mustHave.png","#stamps");		
		}
		if( $(this).text().toLowerCase() == "limited edition" ){
			createSeal("img_limitedEdition.png","#printimage .apresentacao #show");
		}
	});
});

function createSeal(sealImg,target) {
	var img = "<img class='seal-img' src='/Control/ArquivoExibir.aspx?NomeArquivo="+sealImg+"' />";
	$(target).append( $(img) );
}